package com.wrupple.muba.desktop.domain;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.core.client.JavaScriptObject;

public  class DesktopLoadingStateHolder {
	private HashMap<String, Activity> activityMap ;
	private JavaScriptObject applicationHierarchy ;
	private JavaScriptObject userData ;
	
	public DesktopLoadingStateHolder() {
		super();
		activityMap = new HashMap<String, Activity> ();
	}
	public Map<String, Activity> getActivityMap() {
		return Collections.unmodifiableMap(activityMap);
	}
	
	public void registerAll(Map<String, Activity> activities){
		activityMap.putAll(activities);
	}
	/**
	 * @return the applicationHierarchy
	 */
	public JavaScriptObject getApplicationHierarchy() {
		return applicationHierarchy;
	}
	/**
	 * @param applicationHierarchy the applicationHierarchy to set
	 */
	public void setApplicationHierarchy(JavaScriptObject applicationHierarchy) {
		this.applicationHierarchy = applicationHierarchy;
	}
	/**
	 * @return the userData
	 */
	public JavaScriptObject getUserData() {
		return userData;
	}
	/**
	 * @param userData the userData to set
	 */
	public void setUserData(JavaScriptObject userData) {
		this.userData = userData;
	}
	/**
	 * @param activityMap the activityMap to set
	 */
	public void setActivityMap(HashMap<String, Activity> activityMap) {
		this.activityMap = activityMap;
	}
	
	
}
